package cn.suxiaoxiang.mmskillbar.utils;

import io.lumine.xikage.mythicmobs.io.MythicConfig;
import io.lumine.xikage.mythicmobs.items.MythicItem;
import org.bukkit.Bukkit;

/**
 * @author Corder-Suxiaoxiang
 * @UserName 程序员_Suxiaoxiang
 * @date 2025/1/24 15:37
 * @Version 1.0
 */
public class getItemConfig {

    /**
     * 传递一个MythicItem对象，返回该MythicItem的配置信息
     * @Username 程序员-Su_xiaoxiang
     * @date 2025/1/24 15:39
     * @return MythicItem
     */
    public MythicConfig getmmItemConfig(MythicItem item){
        if (item.getConfig() == null){
            //Bukkit.getServer().getConsoleSender().sendMessage(item.getConfig().toString());
            return null;
        }else {
            return item.getConfig();
        }
    }
}
